<template>
  <div id="div">
    <van-cell is-link @click="showPopup">展示弹出层</van-cell>
     <van-popup v-model="show"  position="top" :style="{ height: '30%' }">内容</van-popup>
    <van-popup v-model="show" />
  </div>
</template>

<script>
export default {
 data() {
    return {
      show: false,
    };
  },

  methods: {
    showPopup() {
      this.show = true;
    },
  },
}
</script>

<style>

</style>